# -*- coding: utf-8 -*-
# @Time : 2024/4/3 18:42
# @Author : cute
# @Email : Aggressive_cute@126.com

import doctest
import re
import json
import random
import ddddocr
import uuid
import time
import base64
from loguru import logger
import subprocess
from functools import partial
from Crypto.Cipher import DES, AES
from Crypto.Util.Padding import pad

subprocess.Popen = partial(subprocess.Popen, encoding="utf-8")
import execjs
import os
import requests

all_track = {
    170: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,91%5D,%5B3,0,13%5D,%5B10,0,15%5D,%5B22,0,18%5D,%5B37,0,11%5D,%5B55,0,19%5D,%5B72,0,15%5D,%5B83,0,20%5D,%5B91,0,14%5D,%5B97,0,16%5D,%5B102,0,22%5D,%5B106,0,18%5D,%5B111,0,16%5D,%5B117,0,16%5D,%5B121,0,16%5D,%5B125,-1,20%5D,%5B128,-1,15%5D,%5B132,-1,18%5D,%5B135,-1,14%5D,%5B139,-1,14%5D,%5B143,-1,15%5D,%5B147,-1,17%5D,%5B151,-1,17%5D,%5B154,-1,15%5D,%5B156,-1,17%5D,%5B157,-1,18%5D,%5B158,-1,15%5D,%5B159,-1,24%5D,%5B160,-1,15%5D,%5B161,-1,16%5D,%5B162,-1,18%5D,%5B163,-1,16%5D,%5B164,-1,18%5D,%5B166,-1,15%5D,%5B168,-1,16%5D,%5B169,-1,14%5D,%5B170,-1,16%5D,%5B170,-1,18%5D%5D%7D",
    72: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,116%5D,%5B4,0,18%5D,%5B12,0,13%5D,%5B21,0,15%5D,%5B29,0,19%5D,%5B38,0,16%5D,%5B46,0,17%5D,%5B55,0,19%5D,%5B63,0,13%5D,%5B68,0,18%5D,%5B70,0,19%5D,%5B71,0,16%5D,%5B72,0,13%5D,%5B72,0,17%5D%5D%7D",
    116: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,148%5D,%5B4,0,15%5D,%5B15,0,18%5D,%5B32,0,16%5D,%5B51,0,17%5D,%5B71,0,18%5D,%5B86,0,16%5D,%5B96,0,14%5D,%5B103,0,14%5D,%5B106,0,17%5D,%5B107,0,18%5D,%5B108,0,15%5D,%5B108,0,133%5D,%5B107,0,33%5D,%5B107,0,23%5D,%5B107,0,146%5D,%5B108,0,17%5D,%5B108,0,19%5D,%5B109,0,12%5D,%5B111,0,21%5D,%5B112,0,12%5D,%5B113,0,22%5D,%5B114,0,15%5D,%5B114,0,17%5D,%5B114,0,45%5D,%5B114,0,17%5D,%5B115,0,317%5D,%5B115,0,18%5D,%5B115,0,15%5D,%5B115,0,19%5D,%5B116,0,16%5D,%5B116,0,20%5D,%5B116,0,13%5D%5D%7D",
    144: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,1%5D,%5B1,0,130%5D,%5B9,0,22%5D,%5B23,0,11%5D,%5B42,0,18%5D,%5B62,0,18%5D,%5B78,0,15%5D,%5B88,0,18%5D,%5B94,0,15%5D,%5B98,0,17%5D,%5B99,0,17%5D,%5B100,0,19%5D,%5B101,0,17%5D,%5B103,0,17%5D,%5B104,0,16%5D,%5B107,0,18%5D,%5B110,0,17%5D,%5B114,0,16%5D,%5B119,0,15%5D,%5B123,-1,18%5D,%5B126,-1,17%5D,%5B129,-1,13%5D,%5B131,-1,17%5D,%5B132,-1,16%5D,%5B132,-1,16%5D,%5B133,-1,18%5D,%5B133,-1,33%5D,%5B133,-1,14%5D,%5B133,-1,19%5D,%5B134,-1,17%5D,%5B135,-1,19%5D,%5B136,-1,14%5D,%5B138,-1,18%5D,%5B140,-1,17%5D,%5B142,-1,19%5D,%5B143,-1,15%5D,%5B143,-1,17%5D,%5B144,-1,16%5D%5D%7D",
    165: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,285%5D,%5B2,0,17%5D,%5B6,0,17%5D,%5B10,0,15%5D,%5B15,0,17%5D,%5B22,0,20%5D,%5B28,0,14%5D,%5B33,0,17%5D,%5B38,0,16%5D,%5B41,0,17%5D,%5B42,0,14%5D,%5B43,0,16%5D,%5B44,0,18%5D,%5B44,0,15%5D,%5B44,0,17%5D,%5B44,0,215%5D,%5B44,0,30%5D,%5B46,0,7%5D,%5B47,0,15%5D,%5B50,0,15%5D,%5B54,0,19%5D,%5B58,0,15%5D,%5B62,0,19%5D,%5B65,0,18%5D,%5B67,0,15%5D,%5B68,0,18%5D,%5B69,0,16%5D,%5B70,0,34%5D,%5B70,0,11%5D,%5B70,0,50%5D,%5B70,0,17%5D,%5B72,0,17%5D,%5B75,0,18%5D,%5B77,0,15%5D,%5B79,0,18%5D,%5B80,0,17%5D,%5B81,0,19%5D,%5B81,0,18%5D,%5B81,0,29%5D,%5B82,0,17%5D,%5B82,0,20%5D,%5B84,0,14%5D,%5B86,0,19%5D,%5B89,0,12%5D,%5B91,0,20%5D,%5B93,0,16%5D,%5B94,0,18%5D,%5B94,0,16%5D,%5B95,0,16%5D,%5B95,0,51%5D,%5B95,0,17%5D,%5B95,0,163%5D,%5B95,0,17%5D,%5B97,0,16%5D,%5B100,0,19%5D,%5B104,0,15%5D,%5B107,0,17%5D,%5B109,0,20%5D,%5B110,0,18%5D,%5B110,0,16%5D,%5B111,0,64%5D,%5B111,0,19%5D,%5B112,0,14%5D,%5B113,0,20%5D,%5B116,0,12%5D,%5B119,0,19%5D,%5B122,0,15%5D,%5B125,0,18%5D,%5B128,0,16%5D,%5B131,0,16%5D,%5B136,0,19%5D,%5B141,-1,15%5D,%5B146,-1,20%5D,%5B151,-2,16%5D,%5B155,-2,16%5D,%5B159,-3,18%5D,%5B162,-3,16%5D,%5B165,-4,18%5D,%5B166,-4,15%5D,%5B167,-4,17%5D,%5B167,-4,14%5D,%5B167,-4,299%5D,%5B167,-4,16%5D,%5B167,-4,17%5D,%5B166,-4,17%5D,%5B165,-4,19%5D,%5B165,-4,14%5D,%5B165,-4,18%5D%5D%7D",
    65: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,93%5D,%5B2,0,16%5D,%5B9,0,17%5D,%5B19,0,16%5D,%5B29,0,18%5D,%5B39,0,18%5D,%5B46,0,19%5D,%5B51,0,18%5D,%5B55,0,16%5D,%5B58,0,16%5D,%5B60,0,17%5D,%5B62,0,17%5D,%5B63,0,17%5D,%5B64,0,16%5D,%5B65,0,16%5D,%5B65,0,15%5D%5D%7D",
    88: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,1%5D,%5B0,0,107%5D,%5B4,0,17%5D,%5B11,0,23%5D,%5B21,0,13%5D,%5B33,0,18%5D,%5B42,0,16%5D,%5B49,0,19%5D,%5B54,0,17%5D,%5B55,0,17%5D,%5B56,0,15%5D,%5B56,0,196%5D,%5B58,0,18%5D,%5B61,0,20%5D,%5B64,0,15%5D,%5B68,0,19%5D,%5B71,-1,15%5D,%5B74,-1,17%5D,%5B76,-1,14%5D,%5B78,-1,18%5D,%5B79,-1,15%5D,%5B80,-2,16%5D,%5B80,-2,18%5D,%5B80,-2,19%5D,%5B80,-2,49%5D,%5B81,-2,15%5D,%5B81,-2,20%5D,%5B83,-2,13%5D,%5B84,-2,19%5D,%5B86,-3,12%5D,%5B87,-3,23%5D,%5B87,-3,16%5D,%5B88,-3,14%5D,%5B88,-3,14%5D,%5B88,-3,18%5D%5D%7D",
    102: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,1%5D,%5B0,0,111%5D,%5B5,0,17%5D,%5B16,0,19%5D,%5B31,0,14%5D,%5B49,0,18%5D,%5B66,0,19%5D,%5B79,0,15%5D,%5B87,0,21%5D,%5B94,0,15%5D,%5B98,0,16%5D,%5B100,0,18%5D,%5B101,0,16%5D,%5B102,0,18%5D,%5B102,0,15%5D%5D%7D",
    159: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,1%5D,%5B1,0,93%5D,%5B5,0,19%5D,%5B19,0,14%5D,%5B40,0,19%5D,%5B64,0,16%5D,%5B87,0,16%5D,%5B105,0,19%5D,%5B114,0,15%5D,%5B120,0,21%5D,%5B124,0,15%5D,%5B126,0,17%5D,%5B127,-1,18%5D,%5B130,-1,16%5D,%5B132,-2,17%5D,%5B134,-4,16%5D,%5B137,-5,16%5D,%5B141,-6,18%5D,%5B145,-7,12%5D,%5B149,-7,18%5D,%5B152,-8,16%5D,%5B154,-8,16%5D,%5B156,-9,18%5D,%5B157,-9,16%5D,%5B157,-9,18%5D,%5B157,-9,19%5D,%5B158,-9,15%5D,%5B158,-9,19%5D,%5B158,-9,111%5D,%5B158,-9,17%5D,%5B159,-9,16%5D,%5B159,-9,19%5D,%5B159,-9,15%5D%5D%7D",
    48: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B1,0,146%5D,%5B3,0,15%5D,%5B8,0,17%5D,%5B12,0,19%5D,%5B17,0,17%5D,%5B21,0,17%5D,%5B24,0,15%5D,%5B26,0,20%5D,%5B26,0,17%5D,%5B27,0,15%5D,%5B27,0,17%5D,%5B28,0,17%5D,%5B28,0,12%5D,%5B29,0,22%5D,%5B31,0,12%5D,%5B32,0,22%5D,%5B33,0,12%5D,%5B34,0,17%5D,%5B35,0,17%5D,%5B35,0,16%5D,%5B36,0,18%5D,%5B36,0,15%5D,%5B37,0,17%5D,%5B38,0,16%5D,%5B38,0,23%5D,%5B39,0,17%5D,%5B40,0,12%5D,%5B41,0,18%5D,%5B43,0,19%5D,%5B44,0,15%5D,%5B44,0,18%5D,%5B45,0,15%5D,%5B46,0,13%5D,%5B47,0,18%5D,%5B47,0,15%5D,%5B47,0,19%5D,%5B48,0,14%5D,%5B48,0,34%5D,%5B48,0,17%5D%5D%7D",
    163: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,2%5D,%5B1,0,146%5D,%5B2,0,19%5D,%5B9,0,14%5D,%5B19,0,19%5D,%5B30,0,16%5D,%5B41,0,16%5D,%5B49,0,17%5D,%5B57,0,16%5D,%5B66,0,17%5D,%5B78,0,13%5D,%5B91,0,16%5D,%5B104,0,18%5D,%5B115,0,16%5D,%5B125,-1,19%5D,%5B134,-2,15%5D,%5B141,-2,17%5D,%5B147,-3,17%5D,%5B152,-4,19%5D,%5B156,-4,17%5D,%5B159,-4,16%5D,%5B161,-4,16%5D,%5B163,-4,18%5D,%5B165,-4,18%5D,%5B167,-4,17%5D,%5B169,-4,15%5D,%5B170,-4,16%5D,%5B170,-5,18%5D,%5B171,-5,12%5D,%5B171,-5,15%5D,%5B171,-5,18%5D,%5B171,-5,135%5D,%5B171,-5,15%5D,%5B170,-5,17%5D,%5B170,-5,19%5D,%5B170,-5,15%5D,%5B170,-5,65%5D,%5B170,-5,16%5D,%5B169,-5,17%5D,%5B169,-5,19%5D,%5B168,-4,18%5D,%5B166,-4,17%5D,%5B165,-4,16%5D,%5B164,-3,17%5D,%5B163,-3,18%5D%5D%7D",
    85: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,2%5D,%5B0,0,97%5D,%5B3,0,15%5D,%5B11,0,23%5D,%5B29,0,11%5D,%5B48,0,23%5D,%5B61,0,13%5D,%5B70,0,23%5D,%5B76,0,10%5D,%5B79,0,15%5D,%5B80,0,19%5D,%5B80,0,80%5D,%5B81,0,20%5D,%5B81,0,19%5D,%5B82,0,12%5D,%5B82,0,20%5D,%5B83,0,13%5D,%5B83,0,19%5D,%5B84,0,13%5D,%5B84,0,22%5D,%5B85,0,12%5D,%5B85,0,27%5D%5D%7D",
    91: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,129%5D,%5B1,0,18%5D,%5B3,0,15%5D,%5B7,0,18%5D,%5B11,0,15%5D,%5B14,0,16%5D,%5B17,0,23%5D,%5B18,0,15%5D,%5B19,0,17%5D,%5B20,0,15%5D,%5B21,0,17%5D,%5B23,0,17%5D,%5B24,0,16%5D,%5B27,0,17%5D,%5B29,0,15%5D,%5B31,0,17%5D,%5B33,0,15%5D,%5B35,-1,16%5D,%5B38,-1,17%5D,%5B39,-1,16%5D,%5B41,-1,16%5D,%5B42,-2,18%5D,%5B44,-2,16%5D,%5B47,-2,21%5D,%5B50,-2,17%5D,%5B54,-2,15%5D,%5B58,-2,18%5D,%5B63,-2,16%5D,%5B66,-2,17%5D,%5B70,-2,16%5D,%5B72,-2,16%5D,%5B74,-2,18%5D,%5B76,-2,12%5D,%5B77,-2,18%5D,%5B79,-2,16%5D,%5B80,-2,17%5D,%5B81,-2,19%5D,%5B81,-2,14%5D,%5B82,-2,19%5D,%5B83,-2,14%5D,%5B83,-2,17%5D,%5B84,-2,22%5D,%5B85,-2,15%5D,%5B85,-3,19%5D,%5B86,-3,15%5D,%5B87,-3,12%5D,%5B88,-3,23%5D,%5B88,-3,15%5D,%5B88,-3,17%5D,%5B88,-3,11%5D,%5B89,-3,16%5D,%5B89,-3,18%5D,%5B90,-3,15%5D,%5B90,-3,19%5D,%5B91,-3,14%5D%5D%7D",
    132: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,1,2%5D,%5B0,1,111%5D,%5B3,1,17%5D,%5B15,1,17%5D,%5B35,1,21%5D,%5B57,1,19%5D,%5B78,1,13%5D,%5B93,1,16%5D,%5B105,1,21%5D,%5B115,1,15%5D,%5B122,1,18%5D,%5B126,1,15%5D,%5B130,1,17%5D,%5B131,1,14%5D,%5B131,1,15%5D,%5B132,1,17%5D%5D%7D",
    134: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B6,0,109%5D,%5B22,0,22%5D,%5B42,0,11%5D,%5B64,0,18%5D,%5B83,0,15%5D,%5B97,0,18%5D,%5B106,0,15%5D,%5B111,0,18%5D,%5B112,0,16%5D,%5B113,0,19%5D,%5B113,0,16%5D,%5B113,0,18%5D,%5B113,0,15%5D,%5B114,0,17%5D,%5B115,-1,21%5D,%5B115,-1,11%5D,%5B115,-1,21%5D,%5B116,-1,78%5D,%5B116,-1,18%5D,%5B116,-1,15%5D,%5B116,-1,17%5D,%5B117,-1,17%5D,%5B118,-1,16%5D,%5B120,-2,24%5D,%5B121,-2,16%5D,%5B124,-2,18%5D,%5B128,-3,16%5D,%5B130,-3,16%5D,%5B131,-3,15%5D,%5B132,-3,15%5D,%5B133,-3,18%5D,%5B133,-3,13%5D,%5B133,-3,20%5D,%5B133,-3,29%5D,%5B133,-3,16%5D,%5B133,-3,70%5D,%5B133,-3,16%5D,%5B133,-3,17%5D,%5B133,-3,18%5D,%5B134,-3,13%5D,%5B134,-3,39%5D%5D%7D",
    172: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B1,0,113%5D,%5B8,0,16%5D,%5B26,0,20%5D,%5B50,0,17%5D,%5B86,0,16%5D,%5B120,0,18%5D,%5B139,0,17%5D,%5B154,0,16%5D,%5B163,0,16%5D,%5B168,0,20%5D,%5B169,0,18%5D,%5B170,0,15%5D,%5B170,0,18%5D,%5B170,0,26%5D,%5B170,0,17%5D,%5B171,0,17%5D,%5B171,0,19%5D,%5B171,0,14%5D,%5B171,0,16%5D,%5B171,0,36%5D,%5B172,0,16%5D%5D%7D",
    139: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,134%5D,%5B2,0,19%5D,%5B6,0,14%5D,%5B15,0,15%5D,%5B25,0,18%5D,%5B35,0,14%5D,%5B45,0,19%5D,%5B53,0,15%5D,%5B58,0,17%5D,%5B63,0,18%5D,%5B67,0,17%5D,%5B70,0,18%5D,%5B72,0,17%5D,%5B74,0,16%5D,%5B76,0,18%5D,%5B77,0,16%5D,%5B78,0,18%5D,%5B78,0,16%5D,%5B79,0,16%5D,%5B79,0,14%5D,%5B79,0,65%5D,%5B80,0,17%5D,%5B81,0,17%5D,%5B84,-1,16%5D,%5B87,-1,21%5D,%5B90,-2,14%5D,%5B93,-2,20%5D,%5B94,-2,13%5D,%5B95,-2,21%5D,%5B95,-2,11%5D,%5B95,-2,21%5D,%5B95,-2,46%5D,%5B96,-2,16%5D,%5B98,-2,18%5D,%5B101,-2,18%5D,%5B105,-2,15%5D,%5B108,-2,19%5D,%5B110,-2,14%5D,%5B112,-2,20%5D,%5B113,-2,15%5D,%5B114,-2,19%5D,%5B115,-2,17%5D,%5B116,-2,16%5D,%5B116,-2,17%5D,%5B117,-2,18%5D,%5B117,-2,11%5D,%5B117,-2,50%5D,%5B117,-2,17%5D,%5B119,-2,16%5D,%5B121,-2,19%5D,%5B124,-2,15%5D,%5B128,-2,17%5D,%5B133,-2,18%5D,%5B137,-2,15%5D,%5B142,-2,21%5D,%5B146,-2,17%5D,%5B150,-2,17%5D,%5B154,-2,17%5D,%5B156,-2,15%5D,%5B158,-2,18%5D,%5B159,-2,16%5D,%5B159,-2,16%5D,%5B159,-2,148%5D,%5B159,-2,17%5D,%5B158,-2,16%5D,%5B156,-2,19%5D,%5B152,-2,14%5D,%5B148,-1,19%5D,%5B144,-1,13%5D,%5B141,-1,20%5D,%5B140,0,14%5D,%5B139,0,18%5D,%5B139,0,15%5D%5D%7D",
    141: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,1%5D,%5B0,0,101%5D,%5B7,0,17%5D,%5B24,0,18%5D,%5B45,0,16%5D,%5B66,0,17%5D,%5B81,0,16%5D,%5B92,0,16%5D,%5B100,0,18%5D,%5B105,0,16%5D,%5B110,0,21%5D,%5B115,0,13%5D,%5B121,-1,19%5D,%5B128,-2,18%5D,%5B133,-3,12%5D,%5B137,-4,21%5D,%5B139,-4,12%5D,%5B140,-4,20%5D,%5B140,-4,15%5D,%5B141,-4,65%5D,%5B141,-4,19%5D,%5B141,-4,33%5D,%5B141,-4,16%5D,%5B141,-4,17%5D,%5B141,-4,17%5D,%5B141,-4,48%5D%5D%7D",
    62: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,-1,2%5D,%5B0,-1,113%5D,%5B9,-1,17%5D,%5B23,-1,18%5D,%5B38,-1,20%5D,%5B48,-1,10%5D,%5B55,-1,21%5D,%5B60,-1,14%5D,%5B62,-1,19%5D,%5B62,-1,17%5D%5D%7D",
    149: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,117%5D,%5B4,0,15%5D,%5B14,0,18%5D,%5B30,0,18%5D,%5B48,0,12%5D,%5B62,0,21%5D,%5B73,0,12%5D,%5B81,0,17%5D,%5B86,0,19%5D,%5B89,0,15%5D,%5B91,0,18%5D,%5B93,0,20%5D,%5B94,0,13%5D,%5B95,0,19%5D,%5B96,0,14%5D,%5B98,0,20%5D,%5B99,0,15%5D,%5B100,0,17%5D,%5B101,0,18%5D,%5B101,0,12%5D,%5B102,0,33%5D,%5B103,0,17%5D,%5B105,0,18%5D,%5B108,0,16%5D,%5B113,0,17%5D,%5B119,0,17%5D,%5B125,0,16%5D,%5B129,0,20%5D,%5B131,-1,16%5D,%5B132,-1,18%5D,%5B132,-1,15%5D,%5B133,-1,14%5D,%5B133,-1,21%5D,%5B133,-1,30%5D,%5B134,-1,15%5D,%5B134,-1,18%5D,%5B135,-1,15%5D,%5B137,-1,18%5D,%5B139,-1,18%5D,%5B141,-1,16%5D,%5B142,-1,16%5D,%5B143,-1,19%5D,%5B144,-1,20%5D,%5B144,-1,13%5D,%5B144,-1,19%5D,%5B144,-1,14%5D,%5B145,-1,17%5D,%5B145,-1,20%5D,%5B146,-1,14%5D,%5B147,-1,18%5D,%5B147,-1,12%5D,%5B148,-1,18%5D,%5B148,-1,16%5D,%5B149,-1,16%5D,%5B149,-1,33%5D,%5B149,-1,17%5D%5D%7D",
    148: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,1%5D,%5B0,0,84%5D,%5B4,0,17%5D,%5B19,0,19%5D,%5B40,0,16%5D,%5B59,0,20%5D,%5B78,0,17%5D,%5B92,0,14%5D,%5B102,0,22%5D,%5B110,0,10%5D,%5B116,0,21%5D,%5B121,0,11%5D,%5B125,0,20%5D,%5B128,0,18%5D,%5B132,0,12%5D,%5B135,0,19%5D,%5B138,0,15%5D,%5B140,0,17%5D,%5B142,0,18%5D,%5B144,0,15%5D,%5B146,0,18%5D,%5B148,0,19%5D,%5B150,0,16%5D,%5B151,0,18%5D,%5B152,0,16%5D,%5B152,0,18%5D,%5B152,0,231%5D,%5B152,0,15%5D,%5B150,0,16%5D,%5B149,0,20%5D,%5B149,0,18%5D,%5B148,0,16%5D%5D%7D",
    136: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,2%5D,%5B0,0,130%5D,%5B2,0,16%5D,%5B9,0,19%5D,%5B20,0,16%5D,%5B29,0,19%5D,%5B35,0,18%5D,%5B40,0,15%5D,%5B44,0,18%5D,%5B46,0,16%5D,%5B48,0,16%5D,%5B49,0,18%5D,%5B50,0,12%5D,%5B53,0,21%5D,%5B58,0,12%5D,%5B64,1,17%5D,%5B71,2,18%5D,%5B76,2,16%5D,%5B79,3,18%5D,%5B82,3,16%5D,%5B84,3,16%5D,%5B87,3,21%5D,%5B88,3,15%5D,%5B91,4,18%5D,%5B94,4,13%5D,%5B97,4,20%5D,%5B102,5,17%5D,%5B106,6,12%5D,%5B111,7,22%5D,%5B115,7,12%5D,%5B118,8,16%5D,%5B120,9,18%5D,%5B121,9,16%5D,%5B122,9,18%5D,%5B123,9,16%5D,%5B123,10,20%5D,%5B123,10,12%5D,%5B123,10,52%5D,%5B124,10,33%5D,%5B124,10,20%5D,%5B124,10,17%5D,%5B124,10,12%5D,%5B124,10,17%5D,%5B125,10,33%5D,%5B125,10,19%5D,%5B125,10,14%5D,%5B125,10,16%5D,%5B126,10,17%5D,%5B127,10,18%5D,%5B127,10,18%5D,%5B128,10,14%5D,%5B130,10,22%5D,%5B131,10,12%5D,%5B132,10,20%5D,%5B133,10,18%5D,%5B133,10,15%5D,%5B134,10,13%5D,%5B134,10,22%5D,%5B135,10,11%5D,%5B135,10,19%5D,%5B135,10,15%5D,%5B136,10,16%5D,%5B136,10,19%5D,%5B136,10,48%5D,%5B136,10,17%5D%5D%7D",
    153: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,2%5D,%5B0,0,91%5D,%5B6,0,17%5D,%5B20,0,22%5D,%5B39,0,18%5D,%5B58,0,14%5D,%5B76,0,17%5D,%5B92,0,20%5D,%5B102,0,11%5D,%5B108,0,23%5D,%5B112,0,9%5D,%5B114,0,21%5D,%5B116,0,17%5D,%5B119,0,12%5D,%5B125,0,17%5D,%5B132,0,16%5D,%5B139,0,16%5D,%5B146,0,18%5D,%5B151,0,16%5D,%5B155,0,17%5D,%5B158,0,16%5D,%5B159,-1,20%5D,%5B160,-1,14%5D,%5B161,-1,19%5D,%5B161,-1,17%5D,%5B162,-1,46%5D,%5B162,-1,184%5D,%5B161,-1,16%5D,%5B160,-1,19%5D,%5B159,-1,17%5D,%5B157,-1,18%5D,%5B155,-1,12%5D,%5B154,-1,21%5D,%5B153,-1,12%5D,%5B153,-1,17%5D,%5B153,-1,283%5D,%5B153,-1,16%5D%5D%7D",
    92: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B3,0,134%5D,%5B10,0,20%5D,%5B17,0,12%5D,%5B24,0,19%5D,%5B29,0,19%5D,%5B33,0,12%5D,%5B36,0,21%5D,%5B39,0,11%5D,%5B42,0,18%5D,%5B45,0,17%5D,%5B48,0,16%5D,%5B51,0,18%5D,%5B54,0,15%5D,%5B57,0,17%5D,%5B60,0,18%5D,%5B63,0,18%5D,%5B65,0,18%5D,%5B66,0,17%5D,%5B67,0,16%5D,%5B67,0,17%5D,%5B67,0,12%5D,%5B68,0,33%5D,%5B68,0,21%5D,%5B69,0,12%5D,%5B72,0,18%5D,%5B75,0,18%5D,%5B79,0,27%5D,%5B82,0,6%5D,%5B84,0,17%5D,%5B85,0,16%5D,%5B85,0,20%5D,%5B86,0,228%5D,%5B86,0,19%5D,%5B86,0,15%5D,%5B87,0,19%5D,%5B88,0,19%5D,%5B88,0,16%5D,%5B89,0,14%5D,%5B89,0,20%5D,%5B90,0,12%5D,%5B90,0,21%5D,%5B90,0,12%5D,%5B90,0,34%5D,%5B90,0,33%5D,%5B90,0,16%5D,%5B91,0,51%5D,%5B91,0,18%5D,%5B91,0,17%5D,%5B91,0,16%5D,%5B92,0,16%5D%5D%7D",
    129: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,82%5D,%5B3,0,18%5D,%5B12,0,18%5D,%5B30,0,17%5D,%5B57,0,18%5D,%5B78,0,15%5D,%5B90,0,16%5D,%5B99,0,17%5D,%5B105,0,16%5D,%5B108,0,18%5D,%5B110,0,16%5D,%5B111,0,13%5D,%5B111,0,17%5D,%5B113,0,15%5D,%5B115,0,19%5D,%5B119,0,15%5D,%5B123,0,17%5D,%5B126,0,18%5D,%5B127,0,18%5D,%5B128,1,18%5D,%5B129,1,15%5D,%5B129,1,47%5D%5D%7D",
    135: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,1%5D,%5B0,0,95%5D,%5B3,0,17%5D,%5B13,0,22%5D,%5B27,0,15%5D,%5B45,0,17%5D,%5B63,0,19%5D,%5B77,0,12%5D,%5B86,0,21%5D,%5B93,0,11%5D,%5B97,0,20%5D,%5B99,0,18%5D,%5B100,0,12%5D,%5B101,0,18%5D,%5B101,0,15%5D,%5B102,0,16%5D,%5B103,0,18%5D,%5B105,0,16%5D,%5B106,0,18%5D,%5B106,0,18%5D,%5B107,0,15%5D,%5B107,0,19%5D,%5B107,0,13%5D,%5B108,0,17%5D,%5B109,0,19%5D,%5B110,0,17%5D,%5B112,0,17%5D,%5B115,0,16%5D,%5B119,0,15%5D,%5B123,0,15%5D,%5B127,0,17%5D,%5B130,0,18%5D,%5B132,0,16%5D,%5B134,0,18%5D,%5B134,0,15%5D,%5B135,0,18%5D%5D%7D",
    114: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B1,0,129%5D,%5B5,0,16%5D,%5B13,0,18%5D,%5B24,0,18%5D,%5B33,0,17%5D,%5B39,0,16%5D,%5B45,0,16%5D,%5B48,0,17%5D,%5B51,0,20%5D,%5B53,0,15%5D,%5B55,0,19%5D,%5B57,0,16%5D,%5B59,0,15%5D,%5B62,0,18%5D,%5B66,0,17%5D,%5B70,0,14%5D,%5B74,0,15%5D,%5B77,0,16%5D,%5B78,0,18%5D,%5B79,0,15%5D,%5B80,0,18%5D,%5B80,0,83%5D,%5B81,0,17%5D,%5B81,-1,18%5D,%5B82,-1,15%5D,%5B84,-2,19%5D,%5B87,-2,18%5D,%5B89,-2,12%5D,%5B90,-3,21%5D,%5B91,-3,14%5D,%5B92,-3,16%5D,%5B92,-3,17%5D,%5B93,-3,15%5D,%5B93,-3,50%5D,%5B93,-3,19%5D,%5B93,-3,16%5D,%5B94,-3,16%5D,%5B95,-4,23%5D,%5B96,-4,13%5D,%5B97,-4,18%5D,%5B99,-4,12%5D,%5B100,-4,20%5D,%5B102,-4,18%5D,%5B104,-4,12%5D,%5B107,-4,18%5D,%5B108,-4,15%5D,%5B110,-4,16%5D,%5B111,-4,18%5D,%5B111,-4,15%5D,%5B112,-4,16%5D,%5B112,-4,18%5D,%5B112,-4,17%5D,%5B112,-4,17%5D,%5B113,-4,17%5D,%5B113,-4,20%5D,%5B113,-4,12%5D,%5B113,-4,16%5D,%5B113,-4,18%5D,%5B114,-4,34%5D%5D%7D",
    120: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,146%5D,%5B3,0,17%5D,%5B7,0,16%5D,%5B14,0,18%5D,%5B23,0,17%5D,%5B32,0,19%5D,%5B41,0,20%5D,%5B49,0,15%5D,%5B58,0,16%5D,%5B64,0,17%5D,%5B69,0,17%5D,%5B73,-1,13%5D,%5B78,-1,16%5D,%5B82,-2,18%5D,%5B86,-2,13%5D,%5B89,-2,18%5D,%5B92,-3,16%5D,%5B94,-3,16%5D,%5B96,-3,18%5D,%5B98,-3,16%5D,%5B99,-3,18%5D,%5B101,-3,15%5D,%5B103,-3,17%5D,%5B105,-3,22%5D,%5B108,-3,12%5D,%5B110,-3,20%5D,%5B113,-4,12%5D,%5B116,-4,19%5D,%5B118,-4,18%5D,%5B119,-4,15%5D,%5B120,-4,18%5D,%5B120,-4,13%5D%5D%7D",
    110: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,135%5D,%5B2,0,15%5D,%5B8,0,20%5D,%5B17,0,15%5D,%5B26,0,16%5D,%5B34,0,15%5D,%5B39,0,16%5D,%5B44,0,18%5D,%5B47,0,15%5D,%5B49,0,17%5D,%5B51,0,18%5D,%5B52,0,16%5D,%5B55,0,19%5D,%5B58,0,17%5D,%5B63,0,16%5D,%5B68,0,18%5D,%5B72,0,15%5D,%5B76,0,18%5D,%5B79,0,15%5D,%5B80,0,17%5D,%5B81,0,18%5D,%5B82,0,15%5D,%5B83,0,15%5D,%5B85,0,16%5D,%5B88,0,16%5D,%5B90,0,18%5D,%5B93,0,15%5D,%5B96,0,18%5D,%5B98,0,16%5D,%5B100,-1,16%5D,%5B101,-1,21%5D,%5B101,-1,16%5D,%5B102,-1,14%5D,%5B102,-1,33%5D,%5B102,-1,166%5D,%5B102,-1,16%5D,%5B103,-1,19%5D,%5B105,-1,20%5D,%5B107,-1,15%5D,%5B108,-1,16%5D,%5B109,-1,18%5D,%5B109,-1,16%5D,%5B109,-1,14%5D,%5B109,-1,82%5D,%5B110,-1,17%5D%5D%7D",
    121: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B1,0,117%5D,%5B7,0,16%5D,%5B19,0,18%5D,%5B35,0,18%5D,%5B50,0,13%5D,%5B62,0,17%5D,%5B71,0,16%5D,%5B78,0,17%5D,%5B84,0,18%5D,%5B89,0,16%5D,%5B92,0,17%5D,%5B94,0,19%5D,%5B96,0,17%5D,%5B97,0,13%5D,%5B98,0,19%5D,%5B100,0,17%5D,%5B101,0,16%5D,%5B101,0,17%5D,%5B102,0,14%5D,%5B103,0,19%5D,%5B104,0,15%5D,%5B105,0,15%5D,%5B105,0,17%5D,%5B106,0,15%5D,%5B106,0,18%5D,%5B106,0,33%5D,%5B106,0,19%5D,%5B106,0,15%5D,%5B107,0,18%5D,%5B108,0,19%5D,%5B111,0,15%5D,%5B113,0,17%5D,%5B116,0,19%5D,%5B117,0,15%5D,%5B118,0,18%5D,%5B119,0,12%5D,%5B120,0,16%5D,%5B120,0,18%5D,%5B120,0,15%5D,%5B120,0,17%5D,%5B121,0,16%5D,%5B121,0,18%5D,%5B121,0,18%5D,%5B121,0,17%5D,%5B121,0,48%5D,%5B121,0,33%5D%5D%7D",
    127: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,115%5D,%5B1,0,16%5D,%5B4,0,15%5D,%5B8,0,18%5D,%5B13,0,15%5D,%5B25,0,34%5D,%5B29,0,17%5D,%5B33,0,17%5D,%5B36,0,19%5D,%5B39,0,17%5D,%5B43,0,15%5D,%5B49,0,16%5D,%5B58,0,19%5D,%5B66,0,15%5D,%5B73,0,18%5D,%5B80,-1,15%5D,%5B85,-1,14%5D,%5B88,-2,18%5D,%5B90,-2,16%5D,%5B91,-3,17%5D,%5B92,-3,16%5D,%5B93,-3,16%5D,%5B94,-4,18%5D,%5B95,-4,16%5D,%5B98,-5,21%5D,%5B102,-6,15%5D,%5B107,-6,16%5D,%5B112,-7,18%5D,%5B117,-8,16%5D,%5B120,-8,18%5D,%5B123,-8,17%5D,%5B124,-8,15%5D,%5B124,-8,15%5D,%5B125,-8,15%5D,%5B125,-8,18%5D,%5B125,-8,15%5D,%5B125,-9,17%5D,%5B126,-9,16%5D,%5B126,-9,18%5D,%5B126,-9,16%5D,%5B127,-9,19%5D,%5B127,-9,18%5D%5D%7D",
    196: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,95%5D,%5B6,0,16%5D,%5B19,0,16%5D,%5B45,0,17%5D,%5B72,0,22%5D,%5B91,0,11%5D,%5B110,0,18%5D,%5B124,0,15%5D,%5B134,0,22%5D,%5B142,0,14%5D,%5B149,0,16%5D,%5B153,0,18%5D,%5B156,0,13%5D,%5B158,0,18%5D,%5B160,0,16%5D,%5B161,0,16%5D,%5B162,0,17%5D,%5B163,0,17%5D,%5B164,0,17%5D,%5B165,0,16%5D,%5B166,0,20%5D,%5B166,0,17%5D,%5B168,0,15%5D,%5B169,0,19%5D,%5B172,0,17%5D,%5B176,0,31%5D,%5B180,0,7%5D,%5B183,0,11%5D,%5B185,0,19%5D,%5B187,0,11%5D,%5B188,0,16%5D,%5B188,0,17%5D,%5B189,0,17%5D,%5B189,0,33%5D,%5B189,0,17%5D,%5B189,0,16%5D,%5B189,0,20%5D,%5B190,0,16%5D,%5B191,0,16%5D,%5B193,0,17%5D,%5B194,0,18%5D,%5B195,0,16%5D,%5B196,0,17%5D,%5B196,0,15%5D,%5B196,1,16%5D%5D%7D",
    228: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,78%5D,%5B2,0,16%5D,%5B14,0,19%5D,%5B31,0,15%5D,%5B50,0,14%5D,%5B72,0,18%5D,%5B91,0,16%5D,%5B104,0,18%5D,%5B113,0,18%5D,%5B118,0,15%5D,%5B122,0,14%5D,%5B123,0,17%5D,%5B126,0,17%5D,%5B129,0,15%5D,%5B133,0,20%5D,%5B137,-1,17%5D,%5B141,-2,15%5D,%5B146,-3,18%5D,%5B151,-5,16%5D,%5B156,-5,16%5D,%5B160,-6,18%5D,%5B165,-7,15%5D,%5B170,-7,19%5D,%5B175,-7,12%5D,%5B181,-8,16%5D,%5B185,-8,17%5D,%5B189,-9,17%5D,%5B193,-9,18%5D,%5B197,-9,15%5D,%5B201,-9,17%5D,%5B205,-9,21%5D,%5B208,-9,15%5D,%5B211,-9,19%5D,%5B214,-9,15%5D,%5B216,-9,16%5D,%5B217,-9,18%5D,%5B218,-9,15%5D,%5B218,-9,18%5D,%5B219,-9,15%5D,%5B219,-9,15%5D,%5B219,-9,197%5D,%5B220,-9,8%5D,%5B221,-9,14%5D,%5B223,-9,14%5D,%5B224,-9,19%5D,%5B225,-9,20%5D,%5B226,-9,11%5D,%5B226,-9,18%5D,%5B226,-9,15%5D,%5B227,-9,17%5D,%5B227,-9,17%5D,%5B228,-9,16%5D,%5B228,-9,19%5D,%5B228,-9,14%5D,%5B228,-9,17%5D,%5B228,-9,18%5D%5D%7D",
    218: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,2%5D,%5B0,0,131%5D,%5B4,0,16%5D,%5B14,0,16%5D,%5B32,0,18%5D,%5B55,0,13%5D,%5B78,0,18%5D,%5B96,0,16%5D,%5B109,0,17%5D,%5B119,0,18%5D,%5B128,0,19%5D,%5B134,0,13%5D,%5B138,0,16%5D,%5B141,0,16%5D,%5B144,0,17%5D,%5B148,0,17%5D,%5B151,0,18%5D,%5B154,0,15%5D,%5B157,0,20%5D,%5B160,-1,17%5D,%5B163,-1,14%5D,%5B166,-1,18%5D,%5B169,-1,16%5D,%5B172,-1,16%5D,%5B174,-1,18%5D,%5B175,-1,15%5D,%5B177,-1,18%5D,%5B178,-1,15%5D,%5B180,-1,14%5D,%5B182,-1,18%5D,%5B185,-1,16%5D,%5B187,-1,17%5D,%5B190,-1,16%5D,%5B192,-1,17%5D,%5B194,-1,17%5D,%5B195,-1,19%5D,%5B197,-1,17%5D,%5B198,-1,16%5D,%5B199,-1,16%5D,%5B200,-1,19%5D,%5B201,-1,15%5D,%5B202,-1,18%5D,%5B203,-1,15%5D,%5B204,-1,17%5D,%5B205,-1,15%5D,%5B206,0,16%5D,%5B207,0,19%5D,%5B207,0,14%5D,%5B208,0,17%5D,%5B208,0,33%5D,%5B208,0,17%5D,%5B208,0,183%5D,%5B208,0,17%5D,%5B209,0,16%5D,%5B210,0,17%5D,%5B211,0,17%5D,%5B212,0,17%5D,%5B213,0,20%5D,%5B213,0,18%5D,%5B214,0,15%5D,%5B214,0,18%5D,%5B214,0,14%5D,%5B215,0,16%5D,%5B215,0,20%5D,%5B215,0,12%5D,%5B215,0,21%5D,%5B215,0,12%5D,%5B216,0,17%5D,%5B216,0,17%5D,%5B216,0,16%5D,%5B216,0,17%5D,%5B217,0,16%5D,%5B217,0,17%5D,%5B217,0,20%5D,%5B217,0,16%5D,%5B217,0,18%5D,%5B218,1,80%5D,%5B218,2,16%5D%5D%7D",
    212: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,115%5D,%5B3,0,17%5D,%5B13,0,19%5D,%5B30,0,16%5D,%5B49,0,18%5D,%5B72,0,12%5D,%5B91,0,20%5D,%5B103,0,14%5D,%5B112,0,24%5D,%5B117,0,15%5D,%5B120,0,15%5D,%5B123,0,15%5D,%5B125,0,14%5D,%5B128,0,17%5D,%5B131,0,17%5D,%5B134,0,16%5D,%5B137,-1,18%5D,%5B140,-2,15%5D,%5B143,-2,21%5D,%5B145,-3,17%5D,%5B148,-3,14%5D,%5B151,-4,19%5D,%5B154,-5,14%5D,%5B157,-5,18%5D,%5B160,-6,18%5D,%5B163,-6,15%5D,%5B166,-7,19%5D,%5B170,-7,12%5D,%5B175,-8,17%5D,%5B180,-8,16%5D,%5B184,-9,17%5D,%5B188,-9,16%5D,%5B191,-9,17%5D,%5B192,-9,17%5D,%5B193,-9,17%5D,%5B194,-9,19%5D,%5B196,-9,18%5D,%5B197,-9,14%5D,%5B198,-9,18%5D,%5B199,-9,18%5D,%5B200,-9,15%5D,%5B201,-9,17%5D,%5B202,-9,18%5D,%5B202,-9,14%5D,%5B203,-9,16%5D,%5B203,-9,49%5D,%5B203,-9,17%5D,%5B204,-9,16%5D,%5B206,-9,17%5D,%5B207,-9,20%5D,%5B209,-9,16%5D,%5B209,-9,14%5D,%5B210,-9,17%5D,%5B210,-9,16%5D,%5B210,-9,20%5D,%5B211,-9,14%5D,%5B211,-9,17%5D,%5B211,-9,16%5D,%5B211,-9,17%5D,%5B212,-9,16%5D,%5B212,-9,16%5D,%5B212,-9,17%5D,%5B212,-9,16%5D,%5B212,-9,17%5D,%5B212,-9,17%5D,%5B212,-9,17%5D,%5B212,-9,19%5D%5D%7D",
    204: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,58%5D,%5B1,0,17%5D,%5B6,0,17%5D,%5B21,0,16%5D,%5B42,0,19%5D,%5B61,0,15%5D,%5B79,0,16%5D,%5B92,0,19%5D,%5B100,0,16%5D,%5B106,0,19%5D,%5B110,0,14%5D,%5B113,0,18%5D,%5B115,0,18%5D,%5B117,0,14%5D,%5B120,0,16%5D,%5B123,0,16%5D,%5B127,0,17%5D,%5B131,0,17%5D,%5B134,1,16%5D,%5B137,1,18%5D,%5B139,1,15%5D,%5B142,2,17%5D,%5B145,2,21%5D,%5B148,2,15%5D,%5B152,3,19%5D,%5B155,3,14%5D,%5B158,3,17%5D,%5B161,3,17%5D,%5B164,3,17%5D,%5B168,3,17%5D,%5B171,4,13%5D,%5B175,4,16%5D,%5B177,4,18%5D,%5B180,4,16%5D,%5B182,4,18%5D,%5B184,4,15%5D,%5B186,4,17%5D,%5B188,4,17%5D,%5B189,4,19%5D,%5B191,4,17%5D,%5B192,4,16%5D,%5B194,4,17%5D,%5B194,4,18%5D,%5B195,4,16%5D,%5B196,4,17%5D,%5B196,5,29%5D,%5B196,5,300%5D,%5B196,5,17%5D,%5B197,5,17%5D,%5B197,5,19%5D,%5B198,5,15%5D,%5B198,5,18%5D,%5B198,5,15%5D,%5B198,5,20%5D,%5B198,5,31%5D,%5B199,5,18%5D,%5B199,5,16%5D,%5B199,5,34%5D,%5B199,5,14%5D,%5B200,5,19%5D,%5B200,5,13%5D,%5B200,5,17%5D,%5B200,5,16%5D,%5B200,5,17%5D,%5B200,5,17%5D,%5B201,5,16%5D,%5B201,5,17%5D,%5B201,5,17%5D,%5B202,5,20%5D,%5B202,5,17%5D,%5B202,5,13%5D,%5B202,5,17%5D,%5B202,5,16%5D,%5B203,5,17%5D,%5B203,5,17%5D,%5B203,5,16%5D,%5B203,5,17%5D,%5B203,5,16%5D,%5B203,5,17%5D,%5B203,5,17%5D,%5B204,5,17%5D%5D%7D",
    222: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B1,0,92%5D,%5B2,0,18%5D,%5B8,0,16%5D,%5B20,0,18%5D,%5B36,0,16%5D,%5B51,0,16%5D,%5B62,0,17%5D,%5B70,0,19%5D,%5B76,0,17%5D,%5B81,0,16%5D,%5B87,0,16%5D,%5B94,0,18%5D,%5B101,-1,16%5D,%5B109,-2,18%5D,%5B114,-3,15%5D,%5B119,-4,14%5D,%5B123,-4,17%5D,%5B127,-5,17%5D,%5B129,-5,17%5D,%5B131,-5,16%5D,%5B134,-6,16%5D,%5B136,-6,18%5D,%5B138,-7,16%5D,%5B141,-7,17%5D,%5B144,-7,19%5D,%5B146,-7,16%5D,%5B150,-8,18%5D,%5B153,-8,15%5D,%5B157,-9,19%5D,%5B160,-10,15%5D,%5B164,-10,17%5D,%5B166,-10,18%5D,%5B169,-11,12%5D,%5B172,-11,17%5D,%5B174,-11,16%5D,%5B177,-11,17%5D,%5B179,-12,17%5D,%5B180,-12,16%5D,%5B182,-12,18%5D,%5B183,-12,16%5D,%5B184,-12,20%5D,%5B185,-13,18%5D,%5B187,-13,15%5D,%5B189,-13,16%5D,%5B190,-13,15%5D,%5B191,-13,16%5D,%5B192,-13,18%5D,%5B194,-13,17%5D,%5B195,-13,17%5D,%5B197,-13,14%5D,%5B199,-13,16%5D,%5B200,-13,18%5D,%5B201,-13,16%5D,%5B203,-13,17%5D,%5B204,-13,16%5D,%5B206,-13,17%5D,%5B207,-13,17%5D,%5B209,-13,20%5D,%5B210,-14,17%5D,%5B210,-14,15%5D,%5B211,-14,33%5D,%5B211,-14,16%5D,%5B211,-14,19%5D,%5B212,-14,14%5D,%5B212,-14,17%5D,%5B213,-14,16%5D,%5B215,-14,16%5D,%5B216,-14,17%5D,%5B217,-14,16%5D,%5B218,-14,17%5D,%5B219,-14,17%5D,%5B220,-14,17%5D,%5B221,-14,18%5D,%5B221,-14,17%5D,%5B222,-14,16%5D,%5B222,-14,34%5D,%5B222,-14,68%5D,%5B222,-14,80%5D,%5B222,-13,18%5D%5D%7D",
    175: "%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B0,0,75%5D,%5B3,0,17%5D,%5B12,0,16%5D,%5B34,0,18%5D,%5B61,0,15%5D,%5B88,0,19%5D,%5B114,0,21%5D,%5B127,0,15%5D,%5B134,0,17%5D,%5B139,0,16%5D,%5B140,0,17%5D,%5B141,0,16%5D,%5B142,0,17%5D,%5B143,0,17%5D,%5B145,0,12%5D,%5B148,0,21%5D,%5B150,0,12%5D,%5B153,0,18%5D,%5B156,0,17%5D,%5B158,0,16%5D,%5B160,0,17%5D,%5B161,0,16%5D,%5B162,0,17%5D,%5B162,0,23%5D,%5B162,0,142%5D,%5B163,0,16%5D,%5B164,0,17%5D,%5B166,0,30%5D,%5B169,0,8%5D,%5B171,0,12%5D,%5B172,0,18%5D,%5B173,0,18%5D,%5B173,0,19%5D,%5B174,0,16%5D,%5B175,0,15%5D,%5B175,0,19%5D,%5B175,0,45%5D%5D%7D",
}


def functionGetTrack(x):
    try:
        slide_list = all_track.get(x) or all_track.get(x - 1) or all_track.get(x + 1) or all_track.get(
            x - 2) or all_track.get(x + 2)  # or all_track.get(x - 3) or all_track.get(x + 3)
        return slide_list
    except:
        logger.error(f'轨迹库缺少数据 请补充！！！ 距离:{x}')
        return all_track.get(120)

script_path = os.path.join(os.getcwd(), "views", "jd", "core_v2.js")
js_code = open(script_path, mode='r', encoding='utf-8').read()
# js_code = open('./core_v2.js', mode='r', encoding='utf-8').read()
ctx = execjs.compile(js_code)


def get_distance(target_bytes, background_bytes):
    """
    计算滑块距离 (滑块/背景)
    :return: 左上角 右下脚 坐标
    """
    slide = ddddocr.DdddOcr(det=False, ocr=False, show_ad=False)
    res = slide.slide_match(target_bytes, background_bytes, simple_target=True)
    distance = res["target"][0]
    return distance


class JdSlideV2():

    def __init__(self, headers, cookies):
        self.session = requests.session()
        self.session.headers.update(headers)
        self.session.cookies.update(cookies)

    def test(self, si):
        track = '%7B%22ht%22:179,%22wt%22:290,%22bw%22:50,%22sw%22:290,%22mw%22:69,%22list%22:%5B%5B0,0,0%5D,%5B1,0,409%5D,%5B2,0,14%5D,%5B4,0,17%5D,%5B4,0,21%5D,%5B6,0,28%5D,%5B6,-2,4%5D,%5B7,-2,15%5D,%5B8,-2,8%5D,%5B9,-2,18%5D,%5B10,-2,19%5D,%5B10,-2,5%5D,%5B12,-2,14%5D,%5B12,-2,13%5D,%5B14,-2,13%5D,%5B14,-4,8%5D,%5B15,-4,4%5D,%5B16,-4,14%5D,%5B17,-4,6%5D,%5B18,-4,9%5D,%5B18,-5,8%5D,%5B20,-5,1%5D,%5B20,-5,8%5D,%5B21,-5,21%5D,%5B21,-6,3%5D,%5B23,-6,0%5D,%5B24,-6,10%5D,%5B25,-6,11%5D,%5B26,-6,5%5D,%5B26,-7,6%5D,%5B28,-7,7%5D,%5B28,-7,8%5D,%5B29,-7,8%5D,%5B31,-7,8%5D,%5B32,-7,7%5D,%5B32,-8,4%5D,%5B33,-8,1%5D,%5B34,-8,3%5D,%5B36,-8,4%5D,%5B36,-8,3%5D,%5B37,-8,3%5D,%5B37,-10,2%5D,%5B39,-10,1%5D,%5B40,-10,4%5D,%5B41,-10,2%5D,%5B42,-10,3%5D,%5B43,-10,4%5D,%5B44,-10,2%5D,%5B45,-10,3%5D,%5B47,-10,2%5D,%5B48,-10,4%5D,%5B49,-10,4%5D,%5B50,-10,2%5D,%5B51,-10,2%5D,%5B52,-10,4%5D,%5B53,-10,2%5D,%5B55,-10,3%5D,%5B56,-10,3%5D,%5B57,-10,6%5D,%5B58,-10,0%5D,%5B58,-12,1%5D,%5B59,-12,1%5D,%5B60,-12,3%5D,%5B61,-12,4%5D,%5B63,-12,3%5D,%5B64,-12,4%5D,%5B65,-12,4%5D,%5B66,-12,3%5D,%5B67,-12,4%5D,%5B68,-12,4%5D,%5B69,-12,5%5D,%5B71,-12,4%5D,%5B72,-12,4%5D,%5B72,-12,3%5D,%5B74,-12,2%5D,%5B75,-12,4%5D,%5B76,-12,3%5D,%5B77,-12,2%5D,%5B79,-12,3%5D,%5B80,-12,2%5D,%5B80,-12,2%5D,%5B82,-12,3%5D,%5B83,-12,2%5D,%5B84,-12,2%5D,%5B85,-12,2%5D,%5B87,-12,2%5D,%5B88,-12,3%5D,%5B88,-12,2%5D,%5B90,-12,2%5D,%5B91,-12,2%5D,%5B92,-12,4%5D,%5B93,-12,1%5D,%5B94,-12,3%5D,%5B96,-12,2%5D,%5B96,-12,2%5D,%5B98,-12,2%5D,%5B99,-12,2%5D,%5B100,-12,3%5D,%5B101,-12,3%5D,%5B102,-12,3%5D,%5B104,-12,2%5D,%5B104,-12,2%5D,%5B106,-12,4%5D,%5B107,-12,4%5D,%5B108,-12,2%5D,%5B109,-12,4%5D,%5B110,-12,4%5D,%5B112,-12,3%5D,%5B112,-12,6%5D,%5B114,-12,3%5D,%5B115,-12,3%5D,%5B116,-12,5%5D,%5B117,-12,2%5D,%5B118,-12,4%5D,%5B120,-12,4%5D,%5B120,-12,3%5D,%5B122,-12,2%5D,%5B123,-12,2%5D,%5B124,-12,2%5D,%5B125,-12,3%5D,%5B126,-12,2%5D,%5B128,-12,2%5D,%5B128,-12,2%5D,%5B130,-12,3%5D,%5B131,-12,4%5D,%5B132,-12,0%5D,%5B133,-12,2%5D,%5B134,-12,1%5D,%5B136,-12,3%5D,%5B136,-12,2%5D,%5B138,-12,2%5D,%5B139,-12,2%5D,%5B140,-12,2%5D,%5B141,-12,4%5D,%5B142,-12,1%5D,%5B144,-12,2%5D,%5B144,-12,3%5D,%5B145,-12,2%5D,%5B147,-12,3%5D,%5B148,-12,1%5D,%5B149,-12,2%5D,%5B150,-12,3%5D,%5B152,-12,2%5D,%5B152,-13,1%5D,%5B152,-13,1%5D,%5B153,-13,2%5D,%5B155,-13,2%5D,%5B156,-13,2%5D,%5B157,-13,2%5D,%5B158,-13,3%5D,%5B160,-13,2%5D,%5B160,-13,3%5D,%5B161,-13,1%5D,%5B163,-13,3%5D,%5B164,-13,1%5D,%5B165,-13,2%5D,%5B166,-13,3%5D,%5B168,-13,2%5D,%5B168,-13,2%5D,%5B169,-13,2%5D,%5B171,-13,2%5D,%5B172,-13,3%5D,%5B173,-13,2%5D,%5B174,-13,2%5D,%5B175,-13,2%5D,%5B175,-14,1%5D,%5B176,-14,1%5D,%5B177,-14,2%5D,%5B179,-14,2%5D,%5B180,-14,3%5D,%5B181,-14,1%5D,%5B182,-14,1%5D,%5B183,-14,2%5D,%5B184,-14,2%5D,%5B185,-14,2%5D,%5B187,-14,2%5D,%5B188,-14,1%5D,%5B189,-14,2%5D,%5B190,-14,2%5D,%5B191,-14,1%5D,%5B192,-14,2%5D,%5B193,-14,2%5D,%5B195,-14,2%5D,%5B196,-14,1%5D,%5B196,-14,2%5D,%5B198,-14,2%5D,%5B199,-14,2%5D,%5B200,-14,2%5D,%5B201,-14,1%5D,%5B203,-14,1%5D,%5B204,-14,2%5D,%5B204,-14,2%5D,%5B206,-14,2%5D,%5B207,-14,2%5D,%5B208,-14,1%5D,%5B209,-14,2%5D,%5B211,-14,4%5D,%5B212,-14,0%5D,%5B212,-14,1%5D,%5B214,-14,2%5D,%5B215,-14,2%5D,%5B216,-14,2%5D,%5B217,-14,1%5D,%5B219,-14,2%5D,%5B220,-14,2%5D,%5B220,-14,2%5D,%5B222,-14,1%5D,%5B223,-14,2%5D,%5B224,-14,2%5D,%5B225,-14,2%5D,%5B226,-14,2%5D,%5B228,-14,2%5D,%5B228,-14,2%5D,%5B230,-14,2%5D,%5B231,-14,2%5D,%5B232,-14,2%5D,%5B233,-14,2%5D,%5B234,-14,2%5D,%5B236,-14,2%5D,%5B236,-14,2%5D,%5B238,-14,2%5D,%5B239,-14,2%5D%5D%7D'
        encrypted = ctx.call('getEncryptObj', si, 'FPdzeVx13I1d7Cyq', track)
        data_fp = {
            "si": si,
            "version": "2",
            "lang": "1",
            "client": "pc"
        }
        data_fp.update(encrypted)
        response_fp = self.session.post("https://jcap.m.jd.com/cgi-bin/api/fp", data=data_fp)
        data_dcit2 = response_fp.json()
        st1 = data_dcit2['st']
        encrypted = ctx.call('getEncryptObj', si, st1, track)
        data2 = {
            "si": si,
            "lang": "1",
            "version": "2",
            "client": "pc"
        }
        data2.update(encrypted)
        response2 = self.session.post("https://jcap.m.jd.com/cgi-bin/api/check", data=data2)
        data_dict2 = response2.json()
        if data_dict2['code'] != 0:
            data_dict2.update({
                'si': si,
                'error': '请检查si是否合法或者过期'
            })
            return data_dict2

        img_dict = json.loads(data_dict2['img'])
        b1 = img_dict['b1']
        b2 = img_dict['b2']
        st2 = data_dict2['st']
        b64str_b1 = b1.split(',')[-1]
        b64str_b2 = b2.split(',')[-1]
        target_bytes = base64.b64decode(b64str_b2.encode())
        background_bytes = base64.b64decode(b64str_b1.encode())
        distance = int(get_distance(target_bytes, background_bytes) * (290 / 275))
        print('distance:', distance)
        track = functionGetTrack(distance)
        data3 = {
            "si": si,
            "lang": "1",
            "version": "2",
            "client": "pc"
        }
        encrypted = ctx.call('getEncryptObj', si, st2, track)
        print('encrypted:', encrypted)
        data3.update(encrypted)
        time.sleep(random.uniform(2,5))
        response3 = self.session.post("https://jcap.m.jd.com/cgi-bin/api/check", data=data3)
        data_dict3 = response3.json()
        data_dict3.update({
            'si': si
        })
        logger.info(f'response3: {data_dict3}')
        return data_dict3

if __name__ == '__main__':
    headers = {"authority": "jcap.m.jd.com",
               "accept": "application/json, text/plain, */*",
               "accept-language": "zh-CN,zh;q=0.9",
               "cache-control": "no-cache",
               "content-type": "application/x-www-form-urlencoded;charset=UTF-8",
               "origin": "https://cfe.m.jd.com",
               "pragma": "no-cache",
               "referer": "https://cfe.m.jd.com/",
               "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"}
    cookies = {}
    obj = JdSlideV2(headers, cookies)
    si = 'L3ykLAACAAAAACZH0XgAMONkYBCqDt_Pf49h5la-J2msY9uck-Huaap19QeQvAzBamLj1b_gayNrDYd7m2HC5gAAAAA'
    obj.test(si)
